package com.yufubao.framework.util;

import cn.hutool.core.collection.CollUtil;

import java.util.Map;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/9/15 16:17
 */
public class MapParamsUtil {

    //key
    public static String getKey(Map<String, Object> params) {
        if (CollUtil.isNotEmpty(params)) {
           return (String) params.get("key");
        }
        return null;
    }


    //status
    public static String getStatus(Map<String, Object> params) {
        if (CollUtil.isNotEmpty(params)) {
            return (String) params.get("status");
        }
        return null;
    }

}
